package com.pzh.guli.service.edu.mapper;

import com.pzh.guli.service.edu.pojo.Subject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pzh.guli.service.edu.pojo.vo.SubjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 课程科目 Mapper 接口
 * </p>
 *
 * @author xzh
 * @since 2022-05-11
 */

public interface SubjectMapper extends BaseMapper<Subject> {

    List<SubjectVo> selectNestedList(String parentId);
    @Select("select * from edu_subject where parent_id <> 0")
    List<Subject> getTwoList();
}
